package com.jimikongjian.models;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.sql.Time;
import java.sql.Timestamp;

/**
 * Created by fuxiuyang on 17/2/20.
 * 未读评论消息
 */
@Scope("prototype")
@Repository("unreadComment")
public class UnreadComment {

    /**
     * 初始化id号，将id号置为-1
     */
    public static final int INIT_ID = -1;

    /**
     * 自身的id号
     */
    private int id;

    /**
     * 用户的id号
     */
    private int userId = UnreadComment.INIT_ID;

    /**
     * 文章的id号
     */
    private int articleId = UnreadComment.INIT_ID;

    /**
     * 文章的标题
     */
    private String articleTitle;

    /**
     * 未读消息总数
     */
    private int unreadCount = 0;

    /**
     * 更新时间
     */
    private Time updateTime;

    /**
     * 创建时间
     */
    private Timestamp createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public int getUnreadCount() {
        return unreadCount;
    }

    public void setUnreadCount(int unreadCount) {
        this.unreadCount = unreadCount;
    }

    public Time getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Time updateTime) {
        this.updateTime = updateTime;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
